import Vue from 'vue'
import Vuex from 'vuex'
import Home from './Home'
import Login from './Login'
import Meetmanagement from './Meetmanagement'
import Atten from './Atten'
import Information from './Information'
import Achievements from './Achievements'
import Addressbook from './Addressbook'
import StaffAdmin from './StaffAdmin'
import System from './System'
import Personalcenter from './Personalcenter'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    data: '',
    tongzhiData: [],
  },
  getters: {
  },
  mutations: {
    setName: function (state, v) {
      state.data = v;
    },
    daiban: function (state, data) {
      state.tongzhiData = data;
    }
  },
  actions: {
  },
  modules: {
    Home,
    Login,
    Meetmanagement,
    Atten,
    Information,
    Achievements,
    Addressbook,
    StaffAdmin,
    System,
    Personalcenter
  }
})
